package org.charles.zhifou.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.charles.zhifou.common.enums.BaseEnum;

/**
 * <h1>文件上传类型枚举类</h1>
 *
 * @author charles
 * @version 1.0
 */
@AllArgsConstructor
public enum FileUploadTypeEnum implements BaseEnum {

    USER_AVATAR(0, "用户头像", "userAvatar"),
    APP_ICON(1, "应用图标", "appIcon"),
    SCORING_RESULT_PICTURE(2, "评分结果图片", "scoringResultPicture");

    @EnumValue
    @JsonValue
    private final Integer code;

    private final String value;

    @Getter
    private final String bucketDir;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return value;
    }
}
